package com.whstudio.util.ui;

import javax.swing.JCheckBox;
import javax.swing.JScrollBar;

public class TextAreaUtil {
	public static void autoScroll(JScrollBar scrollbar,JCheckBox cbautoscroll){
		if(cbautoscroll.isSelected()){
			scrollbar.setValue(scrollbar.getMaximum());
		}
	}
}
